package com.nbsaas.boot.marketing.rest.convert;

import com.nbsaas.boot.marketing.data.entity.Coupon;
import com.nbsaas.boot.marketing.api.domain.response.CouponResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 优惠券-实体对象转化成响应对象
*/

public class CouponResponseConvert  implements Converter<CouponResponse,Coupon> {

    @Override
    public CouponResponse convert(Coupon source) {
        CouponResponse  result = new  CouponResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

